<template>
  <div style="width: 2000px;height: 2000px">
    <ApprovalFlow :processList="processList" />
  </div>

</template>

<script setup>
import { ref, onMounted } from 'vue'
import ApprovalFlow from './ApprovalFlow.vue'
import { fetchApprovalProcess } from '@/api/approve'

const processList = ref([])

// 模拟请求数据
onMounted(async () => {
  const res = await fetchApprovalProcess() // mock数据或接口返回
  processList.value = res.data
})
</script>
